//
//  Mainviewcontroller.m
//  cardmenNew
//
//  Created by Dengzeyu on 15/12/29.
//  Copyright © 2015年 Dengzeyu. All rights reserved.
//

#import "Mainviewcontroller.h"
#import "UMComPageControlView.h"
#import "Hasbeendownload.h"
#import "KindsView.h"
@interface Mainviewcontroller()
{
    
    bool isTransitionFinish;
    int currentPage;
}
@property (nonatomic, strong) UMComPageControlView *titlePageControl;

@property (nonatomic, strong) KindsView * kindsViewController;
@end
@implementation Mainviewcontroller
-(void)viewDidLoad
{
    isTransitionFinish = YES;
    currentPage = 0;
    UIStoryboard * storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    self.kindsViewController = [storyboard instantiateViewControllerWithIdentifier:@"kinds"];
    
    self.extendedLayoutIncludesOpaqueBars = YES;
    self.edgesForExtendedLayout = UIRectEdgeBottom;
      [self.navigationController pushViewController:self.kindsViewController animated:NO];

}
-(void)viewDidAppear:(BOOL)animated
{
    

}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

-(BOOL)shouldAutorotate
{
    return NO;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskPortrait;
}

-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return UIInterfaceOrientationPortrait;
}
@end
